home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C & C++ Multimedia Cyber Classroom
/
C and C++ Multimedia Cyber Classroom (Prentice Hall) (1998).iso
/
src
/
fig22_20.jar
/
Ch22
/
Fig22_20
/
Fig22_20.c
Wrap
C/C++ Source or Header
|
1993-11-09
|
287b
|
17 lines
/* Reading characters and strings */
#include <stdio.h>
main()
{
char x, y[9];
printf("Enter a string: ");
scanf("%c%s", &x, y);
printf("The input was:\n");
printf("the character \"%c\" ", x);
printf("and the string \"%s\"\n", y);
return 0;
}